package com.earl.gsm.domain.sercurity.user;

import java.io.Serializable;

import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.Table;

import com.earl.gsm.commons.domain.AbstractAuditingEntity;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.wordnik.swagger.annotations.ApiModel;

@ApiModel(value="SubModel")
@JsonInclude(JsonInclude.Include.NON_NULL) //jackson 控制，放回字段为null,将被过滤
@Table(name = "user")
public class User extends AbstractAuditingEntity<Long> implements Serializable {

    //    private Long id;
    private String username;//用户昵名

    private String phone;//用户手机

    private String loginid;//登录账号

    private String password;//登陆密码

    private String userImg; //用户头像
    
    private Boolean createMatch;

    private static final long serialVersionUID = 1L;

    @AutoID
    public Long getId() {
        return super.getId();
    }

    public void setId(Long id) {
        super.setId(id);
//        this.id = id;
    }

    public User(){}

    public User(String username,String password){
        this.username = username;
        this.password = password;
    }


    public String getUsername() {
        return username;
    }

//    @ApiModelProperty(value = "pet status in the store", allowableValues = "available,pending,sold")
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLoginid() {
        return loginid;
    }

    public void setLoginid(String loginid) {
        this.loginid = loginid;
    }

    
    
	public String getUserImg() {
		return userImg;
	}

	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}

	public Boolean getCreateMatch() {
		return createMatch;
	}

	public void setCreateMatch(Boolean createMatch) {
		this.createMatch = createMatch;
	}

	@Override
	public String toString() {
		return "User [username=" + username + ", phone=" + phone + ", loginid=" + loginid + ", password=" + password
				+ ", userImg=" + userImg + "]";
	}
    
}